package hotel.compare.oversea.service;
import hotel.base.oversea.service.BaseService;
import hotel.compare.oversea.entity.meituan.MtHotelGoods;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * 爬取携程酒店记录
 *
 * @author Zhang·JZ
 * @date 2020-05-28
 */
public interface MeituanSpiderService extends BaseService {

    /**
     * 爬取美团后台房态、房价相关信息
     * @param poiIdList 美团酒店id
     * @return
     * @throws ExecutionException
     * @throws InterruptedException
     */
    boolean meituanSpiderHotel(List<String> poiIdList, String cookies) throws ExecutionException, InterruptedException;



    /**
     * 爬取美团后台下单前校验
     * @param mtHotelGoodsList 美团产品
     * @return
     * @throws ExecutionException
     * @throws InterruptedException
     */
    boolean meituanSpiderHotelGoods(List<MtHotelGoods> mtHotelGoodsList, String cookies) throws ExecutionException, InterruptedException;
}
